<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css-wap/swiper.min.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/css-wap/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/css-wap/style.css">
    <script src="__STATIC__/js-wap/jquery-1.11.3.min.js"></script>
    <script src="__STATIC__/js-wap/swiper.min.js"></script>
    <script src="__STATIC__/js-wap/common.js"></script>
    <title>我的拍卖</title>

</head>
<body>
<div class="wrap">
    <div class="header-main">
        <a href="{:url('mobile/auction/order_list',['type'=>0])}"><img src="__STATIC__/img-wap/back.png" class="back"></a>
        <span class="title">我的拍卖</span>
    </div>
    {if condition="$item.status eq 0"}
    <div class="cur-state">等待付款</div>
    {elseif condition="$item.status eq 1"}
    <div class="cur-state">已付款</div>
    {elseif condition="$item.status eq 2"}
    <div class="cur-state">已发货</div>
    {else/}
    <div class="cur-state">已收货</div>
    {/if}
    <div class="center-det">
        {if condition="$address"}
        <div class="address">
            <span>收货人</span>
            <p>{$address.name}    {$address.phone}<span><a href="#"><img src="__STATIC__/img-wap/more1.png" class="more"></a></span></p>
            <p>{$address.area_info} {$address.address}</p>
        </div>
        {else/}
        <div class="address">
            <a href="javascript:change_address();">
                <p style="text-align: center;color: #212121;"><img style="vertical-align: middle;" src="__STATIC__/img_user/go_jump.png" />去选择收货地址</p>
            </a>
        </div>
        {/if}
    </div>
    <div class="order-main">
        <!--<div class="title"><a href="#"><img src="__STATIC__/img-wap/icon27.png" class="icon"><span>店铺名称</span><img src="__STATIC__/img-wap/more1.png" class="more"></a><a href="#"><img src="__STATIC__/img-wap/icon28.png" class="contact"></a></div>-->
        <div class="content">
            <a href="#">
                <div class="media">
                    <div class="media-left media-middle">
                        <a href="#">
                            <img class="media-object" src="__STATIC__/img-wap/pic22.png" alt="">
                        </a>
                    </div>
                    <div class="media-body">
                        <h4 class="media-heading">{$item.title}</h4>
                        <div class="price">&yen;{$item.price}</div>
                    </div>
                </div>
            </a>
        </div>
        <div class="total"><div>共1件商品   合计:<span>￥{$item.price}</span></div></div>
    </div>
    <ul class="list-order">
        <li>订单编号：{$item.order_number}</li>

    </ul>
    <div class="footer-submit fix">
        <input type="hidden" id="order_number" value="{$item.order_number}">
        <input type="submit" value="付款" onclick="pay_now({$item['id']});">
    </div>

</div>
</body>
{include file="public/src" /}
<script>
    //修改地址
    function change_address(){
        sessionStorage.setItem('order_yes_url',window.location.href);
        window.location.href = "{:url('mobile/user_info/address_manage')}?act=auction";
    }

//    function pay_order(number) {
//        var order_number = $('#order_number').val();
//        window.location.href = "{:url('mobile/auction/pay')}?order_number="+order_number;
//    }

    // 支付订单
    function pay_now(oid) {
        sessionStorage.setItem('auction_order_id', oid);
        sessionStorage.setItem('auction_pay',window.location.href);
        layer.open({content: '正在跳转支付页面...', skin: 'msg', time: 2});
        setTimeout(function () {
            window.location.href = "{:url('mobile/user_category/auction')}?&oid=" + oid;
        }, 2000);
    }

</script>
</html>